.class Lcom/example/m6wmr/GiftParticularActivity$2;
.super Ljava/lang/Object;
.source "GiftParticularActivity.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/GiftParticularActivity;->getHttpResource()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/GiftParticularActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/GiftParticularActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/GiftParticularActivity$2;->this$0:Lcom/example/m6wmr/GiftParticularActivity;

    .line 156
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 9

    .prologue
    .line 160
    new-instance v7, Ljava/lang/StringBuilder;

    iget-object v8, p0, Lcom/example/m6wmr/GiftParticularActivity$2;->this$0:Lcom/example/m6wmr/GiftParticularActivity;

    # getter for: Lcom/example/m6wmr/GiftParticularActivity;->m:Lmyapp/MyApp;
    invoke-static {v8}, Lcom/example/m6wmr/GiftParticularActivity;->access$6(Lcom/example/m6wmr/GiftParticularActivity;)Lmyapp/MyApp;

    move-result-object v8

    invoke-virtual {v8}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v8

    invoke-static {v8}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v8

    invoke-direct {v7, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v8, "/index.php?ctrl=app&action=giftinfo&id="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget-object v8, p0, Lcom/example/m6wmr/GiftParticularActivity$2;->this$0:Lcom/example/m6wmr/GiftParticularActivity;

    # getter for: Lcom/example/m6wmr/GiftParticularActivity;->giftid:Ljava/lang/String;
    invoke-static {v8}, Lcom/example/m6wmr/GiftParticularActivity;->access$1(Lcom/example/m6wmr/GiftParticularActivity;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "&datatype=json"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    .line 162
    .local v6, "url":Ljava/lang/String;
    const-string v7, "giftparticularurl--------"

    invoke-static {v7, v6}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 164
    iget-object v7, p0, Lcom/example/m6wmr/GiftParticularActivity$2;->this$0:Lcom/example/m6wmr/GiftParticularActivity;

    # getter for: Lcom/example/m6wmr/GiftParticularActivity;->m:Lmyapp/MyApp;
    invoke-static {v7}, Lcom/example/m6wmr/GiftParticularActivity;->access$6(Lcom/example/m6wmr/GiftParticularActivity;)Lmyapp/MyApp;

    move-result-object v7

    invoke-static {v6, v7}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v5

    .line 167
    .local v5, "str":Ljava/lang/String;
    :try_start_0
    new-instance v4, Lorg/json/JSONObject;

    invoke-direct {v4, v5}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 169
    .local v4, "object":Lorg/json/JSONObject;
    const-string v7, "msg"

    invoke-virtual {v4, v7}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v3

    .line 170
    .local v3, "msg":Lorg/json/JSONObject;
    const-string v7, "giftinfo"

    invoke-virtual {v3, v7}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v1

    .line 173
    .local v1, "giftinfo":Lorg/json/JSONObject;
    new-instance v2, Landroid/os/Message;

    invoke-direct {v2}, Landroid/os/Message;-><init>()V

    .line 174
    .local v2, "message":Landroid/os/Message;
    const/4 v7, 0x1

    iput v7, v2, Landroid/os/Message;->arg1:I

    .line 175
    iput-object v1, v2, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 176
    iget-object v7, p0, Lcom/example/m6wmr/GiftParticularActivity$2;->this$0:Lcom/example/m6wmr/GiftParticularActivity;

    # getter for: Lcom/example/m6wmr/GiftParticularActivity;->h:Landroid/os/Handler;
    invoke-static {v7}, Lcom/example/m6wmr/GiftParticularActivity;->access$11(Lcom/example/m6wmr/GiftParticularActivity;)Landroid/os/Handler;

    move-result-object v7

    invoke-virtual {v7, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    .line 185
    .end local v1    # "giftinfo":Lorg/json/JSONObject;
    .end local v2    # "message":Landroid/os/Message;
    .end local v3    # "msg":Lorg/json/JSONObject;
    .end local v4    # "object":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 178
    :catch_0
    move-exception v0

    .line 180
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0
.end method
